//
//  GCDUtil.h
//  IOS_SST
//
//  Created by lfy on 16/4/28.
//  Copyright © 2016年 jiahua. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncUdpSocket.h"

@interface GCDUtil : NSObject

/**
 *  从给定的address获取ip地址
 *
 *  @param address address description
 *
 *  @return IP地址
 */
+(NSString *)getIPAddressFromAddress:(NSData *)address;

/**
 *  从给定的ip判断是否为广播
 *
 *  @param ip
 *
 *  @return
 */
+(Boolean) isBroadCaseByIp:(NSString *)ip;

/**
 *  从给定的ip判断是否为广播
 *
 *  @param address
 *
 *  @return
 */
+(Boolean) isBroadCaseByAddress:(NSData *)address;
@end
